<?php
class Model extends ez_Model
{
	protected $mysql;
	function __construct()
	{
		$this->mysql = new ez_Mysql();
		$this->mysql->connect(
			Config::getConfig('mysql_server'),
			Config::getConfig('mysql_uid'),
			Config::getConfig('mysql_password')
		);
		$this->mysql->setDatabase(Config::getConfig('mysql_database'));
		$this->mysql->setCharset(Config::getConfig('mysql_charset'));
	}
} 